package com.wzw.expression.expression.object;

import lombok.Getter;

import java.io.Serializable;
import java.lang.reflect.Method;

/**
 * 通用的根对象
 *
 * @author Wangzhiwen
 */
@Getter
public class GeneralExpressionRootObject implements Serializable {

    private final Method method;

    private final Object[] args;

    private final Object target;

    private final Class<?> targetClass;

    public GeneralExpressionRootObject(Method method, Object[] args, Object target, Class<?> targetClass) {
        this.method = method;
        this.args = args;
        this.target = target;
        this.targetClass = targetClass;
    }

    public String getMethodName() {
        return method.getName();
    }

}
